


WC(1L)            MISC. REFERENCE MANUAL PAGES             WC(1L)



NAME
     wc - print the number of bytes, words, and lines in files

SYNOPSIS
     wc [-clw] [--bytes] [--chars] [--lines] [--words] [file...]

DESCRIPTION
     This manual page documents the GNU version of wc.  wc counts
     the  number  of  bytes, whitespace-separated words, and new-
     lines in each given file, or the standard input if none  are
     given or when a file named `-' is given.  It prints one line
     of counts for each file, and if the file  was  given  as  an
     argument,  it  prints the filename following the counts.  If
     more than one filename is given, wc prints a final line con-
     taining  the  cumulative  counts, with the filename `total'.
     The counts are printed in the order: lines, words, bytes.

     By default, wc prints all three counts.  Options can specify
     that  only  certain  counts be printed.  Options do not undo
     others previously given, so wc --_b_y_t_e_s --_w_o_r_d_s  prints  both
     the byte counts and the word counts.

  OPTIONS
     -_c, --_b_y_t_e_s, --_c_h_a_r_s
          Print only the byte counts.

     -_w, --_w_o_r_d_s
          Print only the word counts.

     -_l, --_l_i_n_e_s
          Print only the newline counts.

     The long-named options can be introduced with `+' as well as
     `--',  for compatibility with previous releases.  Eventually
     support for `+' will be removed, because it is  incompatible
     with the POSIX.2 standard.



















Sun Release 4.1           Last change:                          1



